package com.yhf.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("permission")
public class Permission {
    @TableId(value = "pid",type = IdType.AUTO)
    private int id;
    private String path;
    private String title;
    private String icon;
    private String linkUrl;
    private List<Permission> children;  //子菜单 //数据库描述集合关系 做一对多
    // private Permission permission;  //单表做一对一
}
